﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:custom="clr-namespace:Controls;assembly=Controls"
        Title="" Height="450" Width="500">
    <DockPanel LastChildFill="True" Background="LightGray" FocusManager.FocusedElement="{Binding ElementName=ScrollViewer}">
        <StackPanel Orientation="Horizontal" DockPanel.Dock="Top">
            <TextBlock>Address:</TextBlock> <TextBox Name="AddressBox" Width="219">http://example.com/</TextBox>
            <Button Name="GoButton">Go</Button>
        </StackPanel>
        <DockPanel DockPanel.Dock="Bottom" HorizontalAlignment="Stretch">
            <Border BorderThickness="2" Height="40" Background="White" HorizontalAlignment="Stretch">
                <ScrollViewer>
                <TextBlock Name="Log"  TextWrapping="Wrap"></TextBlock>
                </ScrollViewer>
            </Border>
        </DockPanel>
        <ScrollViewer Name="ScrollViewer" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
            <custom:VisualHostControl x:Name="Visual1" HorizontalAlignment="Left" VerticalAlignment="Top"></custom:VisualHostControl>
        </ScrollViewer>
        
    </DockPanel>
</Window>